package com.heihx.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 数据概览
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "请求营业数据时返回的数据模型")
public class BusinessDataVO implements Serializable {

    @Schema(description = "营业额")
    private Double turnover;//营业额

    @Schema(description = "有效订单数")
    private Integer validOrderCount;//有效订单数

    @Schema(description = "订单完成率")
    private Double orderCompletionRate;//订单完成率

    @Schema(description = "平均客单价")
    private Double unitPrice;//平均客单价

    @Schema(description = "新增用户数")
    private Integer newUsers;//新增用户数

}
